﻿CREATE PROCEDURE [dbo].[spMOMPortAll]
	@OwnerID int
AS
begin try
	if ( select 1 from tblOwner where OwnerID = @OwnerID ) is null
		return
	begin transaction
	exec spMOMPortInitial @OwnerID
	exec spMOMPortSubscriptions @OwnerID
	exec spMOMPortCustomers @OwnerID
	exec spMOMPortOrders @OwnerID
	exec spMOMPortShipping @OwnerID
	exec spMOMPortRMA @OwnerID
	exec spMOMPortJournal @OwnerID
	commit
end try
begin catch
	rollback
	exec usp_RethrowError
end catch
